from celery import Celery

app = Celery("monitor_tasks")
app.conf.update(
    broker_url='redis://localhost:6379/0',
    result_backend='redis://localhost:6379/0',
    task_max_retries=0,
    task_default_retry_delay=0
    #task_always_eager=True,
)
app.autodiscover_tasks(["monitor_tasks.fetch_monitoring_data"])
